import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import settings from './modules/settings'
import app from './modules/app'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    userInfo: {} // 登录返回的用户信息
  },
  mutations: {

  },
  actions: {

  },
  getters,
  modules: {
    user,
    settings,
    app
  }
})

export default store

